package com.pliu.service.impl;

import com.pliu.annotation.LpTransactional;
import com.pliu.dao.UserDao;
import com.pliu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//user 服务层
@Service
public class UserServiceImpl implements UserService {
	@Autowired
	private UserDao userDao;

	@Override
	@LpTransactional
	public void add() {

		userDao.add("test007", 20);
		int i= 1/0;
		System.out.println("################");
		userDao.add("test008", 21);

	}


}
